package com.crm.service.impl;

import com.crm.base.BaseServiceImpl;
import com.crm.mapper.OrderDetailMapper;
import com.crm.domain.entity.OrderDetail;
import com.crm.service.OrderDetailService;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 订单业务层实现类
 */

@Service
public class OrderDetailServiceImpl extends BaseServiceImpl<OrderDetailMapper, OrderDetail> implements OrderDetailService {

    @Override
    public Integer deleteByOid(Integer id) {
        return baseMapper.deleteByOid(id);
    }

    @Override
    public List<Map<String, Object>> findByCustomer(String name, Integer priceMin, Integer price, String date) {
        return baseMapper.findByCustomer(name, priceMin, price, date);
    }
}
